package chinaums.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import chinaums.service.IUrlService;

/**
 * <p>Title:UrlController</p>
 * <p>Description:短连接的控制层</p>
 * @version v1.0
 * @author RenLei
 * 2017年7月21日
 */
@Controller
@RequestMapping("/url")
public class UrlController {
@Autowired
private IUrlService urlservice;
/*@RequestMapping("/add")
@ResponseBody*/
public String add(String getlistid){
	//getlistid="998";
	//调用生成短连接接口
	String check= urlservice.insertUrl(getlistid);
	return check;
}
}
